import { createApp } from 'vue'
import App from '@/App.vue'
// 引入Element Plus插件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// svg插件需要配置代码
import 'virtual:svg-icons-register'
// 引入自定义插件对象：注册整个项目全局组件
import globalComponents from '@/components'
// 引入全局样式
import '@/assets/styles/index.scss'
// 引入路由
import router from '@/router'
// 引入仓库
import pinia from './store'
// 引入路由鉴权文件
import './permisstion.ts'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})

app.use(router)
app.use(globalComponents)
app.use(pinia)
app.mount('#app')

// console.log(import.meta.env)
